/*
 * XML Type:  RecurringInterTransactionRequest
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.RecurringInterTransactionRequest
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML RecurringInterTransactionRequest(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class RecurringInterTransactionRequestImpl extends net.ofx.types.x2003.x04.impl.AbstractTransactionRequestImpl implements net.ofx.types.x2003.x04.RecurringInterTransactionRequest
{
    
    public RecurringInterTransactionRequestImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName RECINTERRQ$0 = 
        new javax.xml.namespace.QName("", "RECINTERRQ");
    private static final javax.xml.namespace.QName RECINTERMODRQ$2 = 
        new javax.xml.namespace.QName("", "RECINTERMODRQ");
    private static final javax.xml.namespace.QName RECINTERCANRQ$4 = 
        new javax.xml.namespace.QName("", "RECINTERCANRQ");
    
    
    /**
     * Gets the "RECINTERRQ" element
     */
    public net.ofx.types.x2003.x04.RecurringInterRequest getRECINTERRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringInterRequest target = null;
            target = (net.ofx.types.x2003.x04.RecurringInterRequest)get_store().find_element_user(RECINTERRQ$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "RECINTERRQ" element
     */
    public boolean isSetRECINTERRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(RECINTERRQ$0) != 0;
        }
    }
    
    /**
     * Sets the "RECINTERRQ" element
     */
    public void setRECINTERRQ(net.ofx.types.x2003.x04.RecurringInterRequest recinterrq)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringInterRequest target = null;
            target = (net.ofx.types.x2003.x04.RecurringInterRequest)get_store().find_element_user(RECINTERRQ$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.RecurringInterRequest)get_store().add_element_user(RECINTERRQ$0);
            }
            target.set(recinterrq);
        }
    }
    
    /**
     * Appends and returns a new empty "RECINTERRQ" element
     */
    public net.ofx.types.x2003.x04.RecurringInterRequest addNewRECINTERRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringInterRequest target = null;
            target = (net.ofx.types.x2003.x04.RecurringInterRequest)get_store().add_element_user(RECINTERRQ$0);
            return target;
        }
    }
    
    /**
     * Unsets the "RECINTERRQ" element
     */
    public void unsetRECINTERRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(RECINTERRQ$0, 0);
        }
    }
    
    /**
     * Gets the "RECINTERMODRQ" element
     */
    public net.ofx.types.x2003.x04.RecurringInterModRequest getRECINTERMODRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringInterModRequest target = null;
            target = (net.ofx.types.x2003.x04.RecurringInterModRequest)get_store().find_element_user(RECINTERMODRQ$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "RECINTERMODRQ" element
     */
    public boolean isSetRECINTERMODRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(RECINTERMODRQ$2) != 0;
        }
    }
    
    /**
     * Sets the "RECINTERMODRQ" element
     */
    public void setRECINTERMODRQ(net.ofx.types.x2003.x04.RecurringInterModRequest recintermodrq)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringInterModRequest target = null;
            target = (net.ofx.types.x2003.x04.RecurringInterModRequest)get_store().find_element_user(RECINTERMODRQ$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.RecurringInterModRequest)get_store().add_element_user(RECINTERMODRQ$2);
            }
            target.set(recintermodrq);
        }
    }
    
    /**
     * Appends and returns a new empty "RECINTERMODRQ" element
     */
    public net.ofx.types.x2003.x04.RecurringInterModRequest addNewRECINTERMODRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringInterModRequest target = null;
            target = (net.ofx.types.x2003.x04.RecurringInterModRequest)get_store().add_element_user(RECINTERMODRQ$2);
            return target;
        }
    }
    
    /**
     * Unsets the "RECINTERMODRQ" element
     */
    public void unsetRECINTERMODRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(RECINTERMODRQ$2, 0);
        }
    }
    
    /**
     * Gets the "RECINTERCANRQ" element
     */
    public net.ofx.types.x2003.x04.RecurringInterCancellationRequest getRECINTERCANRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringInterCancellationRequest target = null;
            target = (net.ofx.types.x2003.x04.RecurringInterCancellationRequest)get_store().find_element_user(RECINTERCANRQ$4, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "RECINTERCANRQ" element
     */
    public boolean isSetRECINTERCANRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(RECINTERCANRQ$4) != 0;
        }
    }
    
    /**
     * Sets the "RECINTERCANRQ" element
     */
    public void setRECINTERCANRQ(net.ofx.types.x2003.x04.RecurringInterCancellationRequest recintercanrq)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringInterCancellationRequest target = null;
            target = (net.ofx.types.x2003.x04.RecurringInterCancellationRequest)get_store().find_element_user(RECINTERCANRQ$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.RecurringInterCancellationRequest)get_store().add_element_user(RECINTERCANRQ$4);
            }
            target.set(recintercanrq);
        }
    }
    
    /**
     * Appends and returns a new empty "RECINTERCANRQ" element
     */
    public net.ofx.types.x2003.x04.RecurringInterCancellationRequest addNewRECINTERCANRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringInterCancellationRequest target = null;
            target = (net.ofx.types.x2003.x04.RecurringInterCancellationRequest)get_store().add_element_user(RECINTERCANRQ$4);
            return target;
        }
    }
    
    /**
     * Unsets the "RECINTERCANRQ" element
     */
    public void unsetRECINTERCANRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(RECINTERCANRQ$4, 0);
        }
    }
}
